#!/bin/sh

tmp_folder=$1
process_id=$2
touch ${tmp_folder}/jmap_heap.log
jmap -heap ${process_id} >> ${tmp_folder}/jmap_heap.log